//
//  LearnListTableViewCell.swift
//  SafeFoodManagerDemo
//
//  Created by 振轩 on 2018/4/17.
//  Copyright © 2018年 bob. All rights reserved.
//

import UIKit

class LearnListTableViewCell: UITableViewCell {

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var thumbimageView: UIImageView!
    
    @IBOutlet weak var progress: UIProgressView!
    
    
    @IBOutlet weak var detailLabel: UILabel!
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
        
        
        

    }
    
    var mode:PlayRecordModel?{
        didSet{
            progress.progress = Float(Float((mode?.progress)!)/100.0)
            titleLabel.text = mode?.title
            thumbimageView.loadWebImage(withName: mode?.thumb, andIsOrgin: true)
            detailLabel.text = "已经学习" + "\(progress.progress*100)"+"%"
            
        }
    }
}
